import { Proton } from "../core/Proton.js";
/**
 * Zone is a base class.
 * @constructor
 */
export class Zone {
  vector = new Proton.Vector3D(0, 0, 0);
  random = 0;
  crossType = "dead";
  log = true;

  getPosition() {
    return null;
  }

  crossing(particle) {
    switch (this.crossType) {
      case "bound":
        this._bound(particle);
        break;

      case "cross":
        this._cross(particle);
        break;

      case "dead":
        this._dead(particle);
        break;
    }
  }

  _dead(particle) {}
  _bound(particle) {}
  _cross(particle) {}
}
